import request from '@/utils/request'
// 问题-列表
export function getList(data) {
  return request({
    url: 'question/list',
    method: 'get',
    params: data
  })
}
// 问题-增
export function getAdd(data) {
  return request({
    url: 'question/',
    method: 'post',
    data
  })
}
// 问题-删
export function del(ids) {
  return request({
    url: 'question',
    method: 'delete',
    data: ids
  })
}
// 问题-改
export function getUpdate(data) {
  return request({
    url: 'question',
    method: 'put',
    data
  })
}
// 问题-详情
export function getDetail(id) {
  return request({
    url: 'question/' +id,
    method: 'get',
  })
}
export default { getAdd, getUpdate, del, getList, getDetail}